一、前言
在搭建SpringCloud项目环境架构的时候,需要选择SpringBoot和SpringCloud进行兼容的版本号,因此对于选择SpringBoot版本与SpringCloud版本的对应关系很重要,如果版本关系不对应,常见的会遇见项目启动不起来,怪异的则会是你的项目出现一些诡异的问题,查资料也不好查。下面就收集一下SpringBoot与SpringCloud版本之间的对应关系,在搭建项目框架或者学习时按照对应的版本区间进行选择即可,避免走一些不必要的弯路。
1. 历史版本图
Release train Spring Boot compatibility
Spring Cloud Release TrainSpring Boot VersionHoxton2.2.xGreenwich2.1.xFinchley2.0.xEdgware1.5.xDalston1.5.xCamden1.4.xBrixton1.3.xAngle1.2.x
注意: 官方通告SpringBoot1.5.x及以下版本官方不再提供维护了,建议开发者选择使用SpringBoot2.0.x以上的版本,相对应的SpringCloud版本也最好不要使用。
二、查看版本关系
访问Spring官方地址,可获取SpringBoot和SpringCloud版本对应信息。
地址如下:
https://start.spring.io/actuator/info
JSON格式如下:
JSON["bom-ranges"]["spring-cloud"]["Finchley.M9"]◣
Path:
JSON["bom-ranges"]["spring-cloud"]["Finchley.M9"]
Key:
Finchley.M9
: Copy deURI deBase64 aLine Copied!
Modify
+Expand all -Collapse all Expand node Scroll to node
Show value Show img Show array leng Show ico
JSON
git
commit
time2020-04-17T16:18:36Z
id7f707c1
branch7f707c17bed34a13b5bc9d5d58c71fc5a901c335
build
version0.0.1-SNAPSHOT
artifactstart-site
namestart.spring.io website
versions
initializr0.9.0.BUILD-SNAPSHOT
spring-boot2.2.6.RELEASE
groupio.spring.start
time2020-04-17T16:19:53.303Z
bom-ranges
azure
2.0.10Spring Boot >=2.0.0.RELEASE and =2.1.0.RELEASE and =2.2.0.M1
codecentric-spring-boot-admin
2.0.6Spring Boot >=2.0.0.M1 and =2.1.0.M1 and =2.2.0.M1
solace-spring-boot
1.0.0Spring Boot >=2.2.0.RELEASE and =2.2.0.RELEASE and =2.0.0.M3 and =2.0.0.M5 and =2.0.0.M6 and =2.0.0.M7 and =2.0.0.RC1 and =2.0.0.RC2 and =2.0.0.RELEASE and =2.0.1.RELEASE and =2.0.2.RELEASE and =2.0.3.RELEASE and =2.0.999.BUILD-SNAPSHOT and =2.1.0.M3 and =2.1.0.RELEASE and =2.1.14.BUILD-SNAPSHOT and =2.2.0.M4 and =2.3.0.BUILD-SNAPSHOT
spring-cloud-alibaba
2.2.0.RELEASESpring Boot >=2.2.0.RELEASE and =2.0.0.RELEASE and =2.1.0.RELEASE and =2.2.0.RELEASE and =2.0.0.RC1 and =2.0.0.RC2 and =2.0.0.RELEASE
vaadin
10.0.17Spring Boot >=2.0.0.M1 and =2.1.0.M1
dependency-ranges
okta
1.2.1Spring Boot >=2.1.2.RELEASE and =2.2.0.M1
mybatis
2.0.1Spring Boot >=2.0.0.RELEASE and =2.1.0.RELEASE
geode
1.2.6.RELEASESpring Boot >=2.2.0.M5 and =2.3.0.M1 and =2.3.0.BUILD-SNAPSHOT
camel
2.22.4Spring Boot >=2.0.0.M1 and =2.1.0.M1 and =2.2.0.M1
三、如何选择SpringBoot与SpringCloud版本号
项目搭建初期,如何对SpringBoot和SpringCloud的一个相互兼容性版本号进行选择,这是很重要的一步,例如SpringCloud的Hoxton.SR3这个版本,他对应的"Spring Boot >=2.2.0.M4 and |